.class public Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;
.super Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;
.source "CategoryDetailAppListAdapter.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;ILcom/brixd/niceapp/model/CategoryModel;Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "layoutViewResourceId"    # I
    .param p3, "objects"    # Lcom/brixd/niceapp/model/CategoryModel;
    .param p4, "listView"    # Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    .prologue
    .line 20
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;-><init>(Landroid/content/Context;ILcom/brixd/niceapp/model/CategoryModel;Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;)V

    .line 21
    return-void
.end method


# virtual methods
.method protected canLastOneClick()Z
    .registers 2

    .prologue
    .line 48
    const/4 v0, 0x1

    return v0
.end method

.method public getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 8
    .param p1, "groupPosition"    # I
    .param p2, "isExpanded"    # Z
    .param p3, "convertView"    # Landroid/view/View;
    .param p4, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 25
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->inflater:Landroid/view/LayoutInflater;

    const v1, 0x7f030089

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p4, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p3

    .line 26
    return-object p3
.end method

.method protected setItemBg(IILcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;)V
    .registers 7
    .param p1, "position"    # I
    .param p2, "total"    # I
    .param p3, "holder"    # Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;

    .prologue
    .line 42
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->viewBg:Landroid/view/View;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f08007f

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    .line 43
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 44
    return-void
.end method

.method protected setItemVisibility(IILcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;)V
    .registers 6
    .param p1, "position"    # I
    .param p2, "total"    # I
    .param p3, "holder"    # Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;

    .prologue
    const/4 v1, 0x0

    .line 31
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->txtAppName:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 32
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->txtAppSubTitle:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 33
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->downloadBtn:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 34
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->expandableCellLayout:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;

    invoke-virtual {v0, v1}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->setVisibility(I)V

    .line 35
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->imgAppIcon:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 36
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 37
    iget-object v0, p3, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$ViewHolder;->viewAppInfo:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 38
    return-void
.end method

.method protected trackDownload(Lcom/brixd/niceapp/model/DownloadSource;Ljava/lang/String;)V
    .registers 10
    .param p1, "downloadSource"    # Lcom/brixd/niceapp/model/DownloadSource;
    .param p2, "source"    # Ljava/lang/String;

    .prologue
    .line 56
    const-string v1, "category_list"

    iget-object v2, p1, Lcom/brixd/niceapp/model/DownloadSource;->fromType:Ljava/lang/String;

    iget v3, p1, Lcom/brixd/niceapp/model/DownloadSource;->appId:I

    iget v4, p1, Lcom/brixd/niceapp/model/DownloadSource;->categoryId:I

    .line 57
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->getUserId()I

    move-result v5

    move-object v0, p2

    .line 56
    invoke-static/range {v0 .. v5}, Lcom/brixd/niceapp/util/ZMStatisticsUtils;->makeCategoryDownloadJson(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)Lorg/json/JSONObject;

    move-result-object v6

    .line 58
    .local v6, "jo":Lorg/json/JSONObject;
    invoke-static {v6}, Lcom/brixd/niceapp/util/ZMStatisticsUtils;->makeZMLog(Lorg/json/JSONObject;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->traceZMEvent(Ljava/lang/String;)V

    .line 59
    return-void
.end method

.method protected trackGoToDetail(Lcom/brixd/niceapp/model/CategoryAppModel;)V
    .registers 5
    .param p1, "categoryAppModel"    # Lcom/brixd/niceapp/model/CategoryAppModel;

    .prologue
    .line 52
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->mContext:Landroid/content/Context;

    const-string v1, "ClickCategoryListApp"

    iget-object v2, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    invoke-static {v0, v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 53
    return-void
.end method
